import Axios from './config';

// 请求所有的数据
export const getAllTopcis = () => Axios.get('/api/v1/topics');


// 携带参数请求
export const getTopicsByParams = ({limit, page}) => Axios.get('/api/v1/topics', {
  params: {limit, page}
});